home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_land animal no attack.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  723 b   |  39 lines

  1. //
  2. // Land unit AI file
  3. //
  4. // Behaviors:
  5. //
  6. //        Keep an eye out for enemy units, pursue and attack if spotted.
  7. //
  8. //    Notes:
  9. //
  10. //    Known Problems:
  11. //
  12.  
  13. AnimalRetaliation
  14. {
  15.     CanFlee true(RunFromAttacker) false(ReacquireGoal)
  16. }
  17.  
  18. UnderAttack
  19. {
  20.     HasGroupFlee true(AnimalRetaliation)
  21.     allof(IsAttackerInRetaliationRange,CanDamageAttacker,AttackerIsReachable) true(RetaliateAgainstAttacker)
  22.     CanFlee true(RunFromAttacker) false(ReacquireGoal)
  23. }
  24.  
  25. #include("Generic Attack.tai")
  26.  
  27. InitialAttackState
  28. {
  29.     Reloaded remove()
  30.     GoalIsAttackLocation remove()
  31.     UnitInWeaponRange remove()
  32.     FacingEnemyUnit remove()
  33.     AlwaysTrue true(Idle)
  34. }
  35.  
  36. #include("Generic Movement.tai")
  37. #include("Generic Death.tai")
  38.  
  39.